package gof23.behavior.observer;

/**
 * 司机（作为观察者）
 */
public class Driver implements Observer{
	
	private String name;

	@Override
	public void update(String message) {
		System.out.println("司机("+name+")观察到："+message);
		
	}
	
	public Driver(String name) {
		this.name = name;
	}

}
